
#ifndef __REMOTE_H
#define __REMOTE_H

#include "gd32f1x0.h"


#define REMOTE_RCU_GPIOx     RCU_GPIOB
#define REMOTE_GPIOx         GPIOB
#define REMOTE_GPIO_PINx     GPIO_PIN_0

typedef union
{
    struct
    {
				uint8_t head;
									
    } RemoteInfo;
    uint8_t RemoteInfoByte[32];
} RemoteInfo_union;

typedef struct
{
	
	uint8_t remoteRecieveBitCount;
	uint8_t remoteRecieveByteCount;
	bool ReceivingCompleted;
	bool StartSignal;
	bool GuideCode;
	bool SynchronizationCode;
	uint8_t remoteRecieveData[32];
	uint32_t remoteRecieveTime;

	
} RemoteRecieve_struct;


void vremoteInit(void);

	
	
#endif

